'use strict';

// app/controller/home.js
const Controller = require('egg').Controller;

class HomeController extends Controller {
    async index() {
        let { ctx,app } = this;
        ctx.body = {
            code: '200',
            msg: '获取成功',
            data: 'hello word'
        };
    }
}

module.exports = HomeController;